﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">
  <class name="VTMS.Model.Entities.Privilege,VTMS.Model.Entities" table="privilege" lazy="false">

    <!-- Primary Key(s) -->
    <id name="Id" column="id" type="Int32" unsaved-value="0">
      <generator class="native"/>
    </id>

    <!-- Properties -->
    <many-to-one name="User" column="userid" not-null="true"
                 class="VTMS.Model.Entities.Users,VTMS.Model.Entities" outer-join="auto" cascade="all" update="true" insert="true"/>
    <property column="itmename" type="String" name="Itmename" not-null="true" length="45" />
    <property column="parentname" type="String" name="ParentName" not-null="true" length="45" />
    <property column="isactive" type="Boolean" name="Isactive" />

  </class>
</hibernate-mapping>
